package mina.forwhat.bo;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import mina.forwhat.repository.GameCodeRepository;
import mina.forwhat.vo.GameCode;

@Service
public class GameBO {
	
	public static final Logger log = LoggerFactory.getLogger(GameBO.class);
	@Autowired
	private GameCodeRepository gc;

	@Transactional(timeout= 300000 ,readOnly = true)
	public List<GameCode> getAllDate(){
		return gc.findAll();
	}
	
}
